<?=isset($header) ? $header : ''?>
<div id="content">
	<div class="form_style">
		<!-- nav1 start-->
		<form method="post" action="/pair/object_formal_pairing" id="userinfo">
			<table>
				<thead>
					<tr>
						<th>需求類型</th>
						<th>客戶姓名</th>
						<th>建物面積</th>
						<th>車位</th>
						<th width="40px">操作</th>
					</tr>
				</thead>
				<tbody id="page_content">
					<?
					foreach($result as $key=>$val){
					?>
					<tr>
						<td><input type="hidden" id="demand_id[]" name="demand_id[]" value="<?=$val->demand_id?>">
						<?
							$t_str="";
							if($val->type_rent=="1"){
									$t_str="租";
							}
							if($val->type_sell=="1"){
									$t_str="售";
							}
							if($val->type_consignment>0){
									$t_str="代銷";
							}
							echo $t_str;
						?>
						</td>
						<td><?=$val->name?></td>
						<td><?=$val->building_area1."~".$val->building_area2?></td>
						<td><?=$val->parking_number?></td>
						<td width="40px">
						<a href="<?=site_url('/demand/info/'.$val->demand_id)?>"><img src="/images/ico_edit_16.png" title="查看" border="0" /></a>
						</td>
					</tr>
					<?
					}
					?>					
				</tbody>
				<tfoot>
				<tr>
					<td colspan="15">
					<div>
						<div style="float:left;vertical-align:baseline"><input type="hidden" id="object_temporary_id" name="object_temporary_id" value="<?=$object_temporary_id?>">
						<input type="submit" name="pair_submit" id="pair_submit"  value="正式配對" class="input_background">
						</div>
						<div style="float:right">
							 <div class="pager fl"> <span class="nav"> <a title="first page" class="first" href="#" onclick='pagination_home()'><span>First</span></a> <a title="previous page" class="previous" href="#" onclick='pagination_previous()'><span>Previous</span></a> </span><input type="hidden" id="pagination_query_condition" name="pagination_query_condition" value="<?=$query_condition?>">
							<input type="hidden" id="pagination_sequence" name="pagination_sequence" value="<?=$sequence?>"><span class="pages"> 第
                        <input id="pagination_pages" class="post" type="text" value="1" name="pagination_pages" style="width:20px;">
                        /<?=$page['num_pages']?> </span> <input type="hidden" id="pagination_num_pages" name="pagination_num_pages" value="<?=$page['num_pages']?>">
							<input type="hidden" id="pagination_url" name="pagination_url" value="<?=$page['url']?>"><span class="nav"> <a title="next page" class="next" href="#" onclick='pagination_next()'><span>Next</span></a> <a title="last page" class="last" href="#" onclick='pagination_last()'><span>Last</span></a> </span> </div>
						</div>
					</div>
					</td>
				</tr>
				</tfoot>
			</table>
			</form>
	</div>
</div>
<?=isset($footer) ? $footer : ''?>